const formRules = {
  apartmentID: [
    { type: 'number', required: true, message: '请选择所属宿舍', trigger: ['change', 'blur'] }
  ],
  roomName: [
    { type: 'string', required: true, message: '请输入房间名称', trigger: ['change', 'blur'] }
  ],
  bad: [
    { type: 'number', required: true, message: '请输入床位数量', trigger: ['change', 'blur'] },
    { type: 'number', min: 1, message: '至少有一个床位', trigger: ['change', 'blur'] }
  ],
  rent: [
    { type: 'number', required: true, message: '请输入租金', trigger: ['change', 'blur'] },
    { type: 'number', min: 0, message: '租金必须不能为负值', trigger: ['change', 'blur'] }
  ],
  photos:[
    { required: true, message: '请上传房间照片', trigger: ['change', 'blur'] }
  ]
}

export default formRules
